package cn.ddiancan.schedule.business.job.impl;


import cn.ddiancan.schedule.business.job.ISchedulerJob;
import cn.ddiancan.schedule.feign.CrmRemoteService;
import cn.ddiancan.xddcloud.common.entity.CommonResult;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ContractJob implements ISchedulerJob {

    private final CrmRemoteService crmRemoteService;

    @Override
    public CommonResult<?> executeJob() {
        return crmRemoteService.upcomingExpiringContracts();
    }
}
